package com.itheima.HomeWork.qq;

public class CalculatorDemo {
    public static void main(String[] args) {
        useCalculator(new Calculator() {
            @Override
            public String calc(String a) {
                return a;
            }
        });
    }

    public static void useCalculator(Calculator cal) {
        String a = "dasdasdas";
        System.out.println(cal.calc(a));
    }
}

interface Calculator {
    String calc(String a);
}